/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ModuloConfiguracion;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;

/**
 *
 * @author Patricia
 */
public class consultarRiesgoForm extends org.apache.struts.action.ActionForm {
    
    private String name;
    private int number;
    
    private String nombre;
    private String tipo;
    private String error;
    private String descripcion;
    private boolean todos;

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public String getTipo() {
        return tipo;
    }

    public void setTipo(String tipo) {
        this.tipo = tipo;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }


    public String getName() {
        return name;
    }

    public void setName(String string) {
        name = string;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int i) {
        number = i;
    }

    public String getDescripcion() {
        return descripcion;
    }

    public void setDescripcion(String descripcion) {
        this.descripcion = descripcion;
    }

    public boolean getTodos() {
        return todos;
    }

    public void setTodos(boolean todos) {
        this.todos = todos;
    }

    public consultarRiesgoForm() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    @Override
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();
       // if (getName() == null || getName().length() < 1) {
         //   errors.add("name", new ActionMessage("error.name.required"));
            // TODO: add 'error.name.required' key to your resources
       // }
        return errors;
    }
}
